package com.sina.shop.service.collect;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.collect.CollectBusiness;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-02-06-10:27
 */
public interface CollectBusinessService extends BaseService {

    //根据用户id得到收藏店铺列表
    List<CollectBusiness> getCollectBusinessByAdminId(Long adminId);

    //根据id删除收藏店铺记录
    Integer deleteCollectBusiness(Long id) throws DataException, UpdateException;

    //保存收藏
    CollectBusiness saveCollectBusiness(CollectBusiness collectBusiness) throws CreateException, ResourceExistsException, DataException;

    CollectBusiness getCollectBusinessByAidAndBid(Long adminId, Long businessId);
}
